<?php
if ( ! defined( 'IN_IPB' ) )
{
	print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
	exit();
}

class components_location_market
{
	var $ipsclass;
	
	function get_session_variables()
	{
		return array(
				 	'1_type'     => $this->ipsclass->input['CODE'],
    				'2_type'     => $this->ipsclass->input['do'],
    				'3_type'     => $this->ipsclass->input['plugin'],
			 );
	}
		
	function parse_online_entries( $array=array() )
	{
		$return = array();
		if(!isset($this->ipsclass->lang['market_location']))
		{
			$this->ipsclass->load_language('lang_market');
		}
		
		$this->ipsclass->lang['market_location'] = sprintf($this->ipsclass->lang['market_location'],$this->ipsclass->vars['market_name']);
		
		//-----------------------------------------
		// LOOP
		//-----------------------------------------
		
		if ( is_array( $array ) and count( $array ) )
		{
			foreach( $array as $session_id => $session_array )
			{
				$location = "";
				$text = $this->ipsclass->lang['market_location'];
				$return[ $session_id ] = array_merge( $session_array, array( '_url' => $location, '_text' => $text, '_parsed' => 1 ) );
			}
		}
		
		return $return;
	}
	
	

}

?>